AnnieRoot.gameOver= AnnieRoot.gameOver||{};
AnnieRoot.gameOver.GameOver=class extends annie.Sprite{
	constructor() {
		super();
		let s=this;
		/*_a2x_need_start*/s.count_txt=null;s.returnHome_btn=null;s.start_btn=null;/*_a2x_need_end*/
		annie.initRes(s,"gameOver","GameOver");
		s.returnHome_btn.mouseChildren = false;
		s.start_btn.mouseChildren = false;
		s.addEventListener(annie.Event.ADD_TO_STAGE, function (e) {
			s.count_txt.text = AnnieRoot.score;
		});
		s.addEventListener(annie.MouseEvent.CLICK, function (e) {
			var id=-1;
			if (e.target.name == "returnHome_btn") {
				id=0;
			} else if (e.target.name == "start_btn") {
				id=1
			}
			if (id==-1)return
			annie.globalDispatcher.dispatchEvent("onShowContent", {sceneId:id});
		});
	}
};